<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CMSIS-Driver: Driver Validation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="tabs.js"></script>
<script type="text/javascript" src="footer.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/javascript" src="darkmode_toggle.js"></script>
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="extra_navtree.css" rel="stylesheet" type="text/css"/>
<link href="extra_search.css" rel="stylesheet" type="text/css"/>
<link href="extra_tabs.css" rel="stylesheet" type="text/css"/>
<link href="version.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../version.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 55px;">
  <td id="projectlogo" style="padding: 1.5em;"><img alt="Logo" src="cmsis_logo_white_small.png"/></td>
  <td style="padding-left: 1em; padding-bottom: 1em;padding-top: 1em;">
   <div id="projectname">CMSIS-Driver
   &#160;<span id="projectnumber"><script type="text/javascript">
     <!--
     writeHeader.call(this);
     writeVersionDropdown.call(this, "CMSIS-Driver");
     //-->
    </script>
   </span>
   </div>
   <div id="projectbrief">Peripheral Interface for Middleware and Application Code</div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
  <!--END !PROJECT_NAME-->
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
  <ul class="tablist">
    <script type="text/javascript">
      writeComponentTabs.call(this);
    </script>
  </ul>
</div>
<script type="text/javascript">
  writeSubComponentTabs.call(this);
</script>
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('driverValidation.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div><div class="header">
  <div class="headertitle"><div class="title">Driver Validation </div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="md_src_validation"></a> Developers can use <b>CMSIS-Driver Validation</b> framework to verify that an implementation of a peripheral driver is compliant with the corresponding CMSIS-Driver Specification. Verified drivers can then be reliably used with middleware components and user applications that rely on CMSIS-Driver APIs.</p>
<p>The CMSIS-Driver Validation is maintained in a separate public <a href="https://github.com/ARM-software/CMSIS-Driver_Validation">GitHub repository</a>, and is also released as a <a href="https://www.keil.arm.com/packs/">CMSIS Software Pack</a> named <b>ARM::CMSIS-Driver_Validation</b>.</p>
<p>This page gives an overview about driver validation. Refer to <a href="https://arm-software.github.io/CMSIS-Driver_Validation/latest/index.html">CMSIS-Driver Validation Guide</a>) for full documentation.</p>
<p>The CMSIS-Driver Validation Suite performs the following tests:</p>
<ul>
<li>Generic Validation of API function calls</li>
<li>Validation of Configuration Parameters</li>
<li>Validation of Communication with loopback tests</li>
<li>Validation of Communication Parameters such as baudrate</li>
<li>Validation of Event functions</li>
</ul>
<p>The following CMSIS-Drivers can be tested with the current release:</p>
<ul>
<li><a class="el" href="group__can__interface__gr.html">CAN Interface</a> : with loop back test of communication.</li>
<li><a class="el" href="group__eth__interface__gr.html">Ethernet Interface</a> : MAC and PHY with loop back test of communication.</li>
<li><a class="el" href="group__i2c__interface__gr.html">I2C Interface</a> : only API and setup; does not test data transfer.</li>
<li><a class="el" href="group__mci__interface__gr.html">MCI Interface</a> : only API and setup; does not test data transfer.</li>
<li><a class="el" href="group__spi__interface__gr.html">SPI Interface</a> : with loop back test of communication.</li>
<li><a class="el" href="group__usart__interface__gr.html">USART Interface</a> : with loop back test of communication.</li>
<li><a class="el" href="group__usbd__interface__gr.html">USB Device Interface</a> : only API and setup; does not test data transfer.</li>
<li><a class="el" href="group__usbh__interface__gr.html">USB Host Interface</a> : only API and setup; does not test data transfer.</li>
<li><a class="el" href="group__wifi__interface__gr.html">WiFi Interface</a> : extensive tests for WiFi Driver.</li>
</ul>
<h1><a class="anchor" id="test_output"></a>
Sample Test Output</h1>
<p>The Driver Validation output can be printed to a console or saved in an XML file, via standard output (usually ITM).</p>
<div class="fragment"><div class="line">CMSIS-Driver USART Test Report   Dec  6 2019   11:44:30</div>
<div class="line"> </div>
<div class="line">TEST 01: USART_GetCapabilities            PASSED</div>
<div class="line">TEST 02: USART_Initialization             PASSED</div>
<div class="line">TEST 03: USART_PowerControl</div>
<div class="line">  DV_USART.c (301): [WARNING] Low power is not supported</div>
<div class="line">                                          PASSED</div>
<div class="line">TEST 04: USART_Config_PolarityPhase       PASSED</div>
<div class="line">TEST 05: USART_Config_DataBits</div>
<div class="line">  DV_USART.c (387): [WARNING] Data Bits = 9 are not supported</div>
<div class="line">                                          PASSED</div>
<div class="line">TEST 06: USART_Config_StopBits</div>
<div class="line">  DV_USART.c (425): [WARNING] Stop Bits = 1.5 are not supported</div>
<div class="line">  DV_USART.c (429): [WARNING] Stop Bits = 0.5 are not supported</div>
<div class="line">                                          PASSED</div>
<div class="line">TEST 07: USART_Config_Parity              PASSED</div>
<div class="line">TEST 08: USART_Config_Baudrate            PASSED</div>
<div class="line">TEST 09: USART_Config_CommonParams        PASSED</div>
<div class="line">TEST 10: USART_Send                       PASSED</div>
<div class="line">TEST 11: USART_AsynchronousReceive        PASSED</div>
<div class="line">TEST 12: USART_Loopback_CheckBaudrate     PASSED</div>
<div class="line">TEST 13: USART_Loopback_Transfer          PASSED</div>
<div class="line">TEST 14: USART_CheckInvalidInit           PASSED</div>
<div class="line"> </div>
<div class="line">Test Summary: 14 Tests, 14 Passed, 0 Failed.</div>
<div class="line">Test Result: PASSED</div>
</div><!-- fragment --><h1><a class="anchor" id="loop_back_setup"></a>
Setup for Loop Back Communication</h1>
<p>To perform loop back communication tests it is required to connect the input and the output of the peripherals as shown in this table:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Peripheral   </th><th class="markdownTableHeadLeft">Loop Back Configuration    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">Ethernet   </td><td class="markdownTableBodyLeft">Connect TX+ (Pin 1) with RX+ (Pin 3), TX- (Pin 2) with RX- (Pin 6)    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">SPI   </td><td class="markdownTableBodyLeft">Connect MISO to MOSI    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">USART   </td><td class="markdownTableBodyLeft">Connect TX with RX   </td></tr>
</table>
<p>The following picture shows the necessary external loop back connections for the Keil MCBSTM32F400 evaluation board:</p>
<ul>
<li>SPI: PB14 (SPI2_MISO) and PB15 (SPI2_MOSI)</li>
<li>USART: PB6 (USART1_TX) and PB7 (USART1_RX)</li>
<li>Ethernet: Pin 1 (TX+) and Pin 3 (RX+), Pin 2 (TX-) and Pin 6 (RX-)</li>
</ul>
<div class="image">
<img src="image006.png" alt=""/>
<div class="caption">
Connections for Loop Back Communication Tests on Keil MCBSTM32F400</div></div>
     </div></div><!-- contents -->
</div><!-- PageDoc -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">
      <script type="text/javascript">
        <!--
        writeFooter.call(this);
        //-->
      </script> 
    </li>
  </ul>
</div>
</body>
</html>
